package com.shelpe.services.sinbad.entity.jpa;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

import lombok.Data;

@Entity(name = "users")
@Data
public class User {

	@Id
	@Column(name = "user_id")
	private Long userID;
	private String nick;
	@Column(name = "authorized_to")
	private Long authorizedTo;
	private String authorizedUsers;
	private String itemCode;
	private int userType;

	private int status;

	@Column(name = "created_time")
	private Date createdTime;

	@Column(name = "purchased_from")
	private Date purchaseFrom;
	@Column(name = "purchase_expires")
	private Date purchaseTime;
	private int established;//0 未开通 1 已经 2 过期
	
	private String qq;
	private String mobile;
}
